#include "stm32f10x.h"
#include "bsp_led.h"
#include "systick.h"
#include "bsp_buzz.h"   
#include "bsp_key.h"
#include "bsp_num.h"


static int16_t i=0;

void BUZZ_Once_ON(void)
{
    BUZZ_ON();
    SysTick_Delay_Nms(500);  
    BUZZ_OFF();
}
int main(void)
{
	
	NUM_GPIO_Config();		
	BUZZ_GPIO_Config();
	BUZZ_OFF();
	while(1)
	{
		SysTick_Delay_Nms(500);
		Send_595(i++);	
		if(i>10)
			i=0;
		if(i<0)
			i=10;
		if(i==0)
			BUZZ_Once_ON();
		SysTick_Delay_Nms(2000);
	}
}

